package com.itheima.patterns.structuralpattern.decorator;

import java.io.BufferedWriter;
import java.io.FileWriter;

public class Demo {
    public static void main(String[] args) throws Exception{
        //创建BufferedWriter对象
        // 创建FileWriter对象
        FileWriter fw = new FileWriter("E:\\a.txt");
        BufferedWriter bw = new BufferedWriter(fw);
        //写数据
        bw.write("hello Buffered");
        bw.close();
    }
}